import asyncio
import threading

async def countdown(n):
    while n > 0:
        print("Coroutine name:", asyncio.current_task().get_name())
        await asyncio.sleep(1)
        n -= 1

async def main():
    # 启动两个异步任务
    task1 = asyncio.create_task(countdown(5))
    task2 = asyncio.create_task(countdown(3))

    # 等待两个任务完成
    await task1
    await task2

asyncio.run(main())